package com.jhgsys.internal.accident.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jhgsys.internal.common.entity.BaseEntity;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;


/**
 *  Entity
 *
 * @author admin
 * @date 2024-09-18 17:23:50
 */
@Data
@TableName("accident_report_rectification_file")
public class AccidentReportRectificationFile extends BaseEntity implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "report_rectification_file_id", type = IdType.ASSIGN_UUID)
    @Size(max = 32, message = "{noMoreThan}")
    private String reportRectificationFileId;

    /**
     * 公司Id
     */
    @TableField("tenant_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String tenantId;

    /**
     * 事故上报Id
     */
    @TableField("report_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String reportId;

    /**
     * 事故整改Id
     */
    @TableField("report_rectification_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String reportRectificationId;

    /**
     * 文件名称
     */
    @TableField("file_name")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String fileName;

    /**
     * 文件路径
     */
    @TableField("file_path")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String filePath;

    /**
     * 压缩路径
     */
    @TableField("small_path")
    @Size(max = 255, message = "{noMoreThan}")
    private String smallPath;

}